package com.aididi.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Service;

/**
 * @Auther: zx.xu
 * @Description:    消息接收者
 */
@Service
@EnableBinding(MySink.class)
@Slf4j
public class ReceiveService {

    @StreamListener("myInput")
    public void receive(Object payload){
        log.info("receive msg :"+payload);
    }
}
